#include "stdafx.h"
#include <boost/test/auto_unit_test.hpp>
#include "detail/bmock_raw_mem_checker.hpp"
#include "detail/bmock_test_control_tools.hpp"

namespace bmock {
	BOOST_AUTO_TEST_CASE(test_raw_mem_checker) {
		const size_t            L1     = 9;
		const size_t            L2     = 10;
		const char              name[] = "arg";
		bool                    result;
		const control_tools_ptr tl(new test_control_tools());
		raw_mem_checker         chk(tl);

		chk.set_location(location(__FILE__,__LINE__+1));
		BOOST_CHECK_NO_THROW(result = chk.check_o_len(name,L1,L2));
		BOOST_CHECK(!result);
	}
}